package com.rawchen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description: 定时任务
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ScheduleJob {
	/** 任务调度参数key */
	public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";

	/** 任务id */
	@TableId(type = IdType.AUTO)
	private Long jobId;
	/** spring bean名称 */
	private String beanName;
	/** 方法名 */
	private String methodName;
	/** 参数 */
	private String params;
	/** cron表达式 */
	private String cron;
	/** 任务状态 */
	private Boolean status;
	/** 备注 */
	private String remark;
	/** 创建时间 */
	private Date createTime;
}
